﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Recursos.Model
{
    public class RolModel
    {
         public IList<Rol> CargarRoles()
        {
            var datacontext = new DataClassesRecursosDataContext();
            var roles = new Repository<Rol>(datacontext);
            return roles.GetAll().ToList();
        }
    }
}